import { dayList } from '../config/dayList'
export function calcDateList($day: any) {
  const startInDay = $day(
    new Date(new Date(new Date().toLocaleDateString()).getTime())
  ) //dayjs对象
  const dateList = Array.from({ length: 6 }, (item, index) => {
    return startInDay.add(index, 'day')
  })
  dateList.forEach(
    (v) => (v.children = [...JSON.parse(JSON.stringify(dayList))])
  )
  return dateList
}
